package com.ruoyi.mas.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mas.mapper.MasLeaveMapper;
import com.ruoyi.mas.domain.MasLeave;
import com.ruoyi.mas.service.IMasLeaveService;

/**
 * 教师请假Service业务层处理
 * 
 * @author xiaotang
 * @date 2022-03-25
 */
@Service
public class MasLeaveServiceImpl implements IMasLeaveService 
{
    @Autowired
    private MasLeaveMapper masLeaveMapper;

    /**
     * 查询教师请假
     * 
     * @param id 教师请假主键
     * @return 教师请假
     */
    @Override
    public MasLeave selectMasLeaveById(Long id)
    {
        return masLeaveMapper.selectMasLeaveById(id);
    }

    /**
     * 查询教师请假列表
     * 
     * @param masLeave 教师请假
     * @return 教师请假
     */
    @Override
    public List<MasLeave> selectMasLeaveList(MasLeave masLeave)
    {
        return masLeaveMapper.selectMasLeaveList(masLeave);
    }

    /**
     * 新增教师请假
     * 
     * @param masLeave 教师请假
     * @return 结果
     */
    @Override
    public int insertMasLeave(MasLeave masLeave)
    {
        return masLeaveMapper.insertMasLeave(masLeave);
    }

    /**
     * 修改教师请假
     * 
     * @param masLeave 教师请假
     * @return 结果
     */
    @Override
    public int updateMasLeave(MasLeave masLeave)
    {
        return masLeaveMapper.updateMasLeave(masLeave);
    }

    /**
     * 批量删除教师请假
     * 
     * @param ids 需要删除的教师请假主键
     * @return 结果
     */
    @Override
    public int deleteMasLeaveByIds(Long[] ids)
    {
        return masLeaveMapper.deleteMasLeaveByIds(ids);
    }

    /**
     * 删除教师请假信息
     * 
     * @param id 教师请假主键
     * @return 结果
     */
    @Override
    public int deleteMasLeaveById(Long id)
    {
        return masLeaveMapper.deleteMasLeaveById(id);
    }
}
